package com.example1.polaris;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class BuscarProd  extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.alispxnombre);
		Button bTCp=(Button)findViewById(R.id.butConsul);
        final EditText Nombre_Producto=(EditText)findViewById(R.id.escNom);   
        
        bTCp.setOnClickListener(new View.OnClickListener()        
        {
			
			@SuppressLint("ShowToast") @Override
			public void onClick(View v) {
			
				// TODO Auto-generated method stub
				//String hi=view.findViewById(R.id.pp).getContext().toString();
            	//Toast.makeText(getApplicationContext(), "Id_Productos"+hi, 1000).show();
                Intent in = new Intent(getApplicationContext(),Reslista.class);
                in.putExtra("Nombre",Nombre_Producto.getText().toString());
                startActivityForResult(in,100);
				
				
			}
		});
	
	}

    
    
}
